#include <stdio.h>

int main(void)
{
    int b[] ={1,2,3,4,5};
    int i,j = 0;
    int *ptr = b;
    for (i = 0; i < 2;i++)
    {
        j = *(ptr+i);
	*(ptr+i) = *(ptr+(4-i));
        *(ptr+(4-i)) = j; 
    }
    for (i = 0;i < 5;i++)
    {
       printf("b[i]=%d\t\n",*(ptr+i)); 
    }	    
    return 0;
}	
